package com.aspose.cells;

public class ErrorBar extends Line {
   private Series d;
   private int e = 1;
   private int f = 2;
   private double g;
   private boolean h = true;
   private boolean i = true;
   private zik j;
   private zik k;
   private ShapePropertyCollection l;

   ErrorBar(Series parent, boolean isYDirection) {
      super((Chart)parent.h().d(), parent);
      this.d = parent;
      this.h = isYDirection;
   }

   public int getType() {
      return this.e;
   }

   public void setType(int value) {
      this.e = value;
   }

   public int getDisplayType() {
      return this.f;
   }

   public void setDisplayType(int value) {
      this.f = value;
   }

   void a(int var1) {
      this.f = var1;
   }

   public double getAmount() {
      return this.g;
   }

   public void setAmount(double value) {
      if (value < 0.0D) {
         throw new IllegalArgumentException("Invalid amount value of error bar: it must be greater than and equal to zero.");
      } else {
         this.g = value;
      }
   }

   void a(double var1) {
      this.g = var1;
   }

   boolean a() {
      return this.h;
   }

   public boolean getShowMarkerTTop() {
      return this.i;
   }

   public void setShowMarkerTTop(boolean value) {
      this.i = value;
   }

   public String getPlusValue() {
      return this.j != null ? this.j.h() : null;
   }

   public void setPlusValue(String value) {
      String var2 = this.a(value);
      if (var2 != null && !"".equals(var2)) {
         this.j = zin.a(this.d.i(), this.d.j(), var2);
      } else {
         this.j = null;
      }
   }

   private String a(String var1) {
      if (var1 == null) {
         return null;
      } else {
         var1 = var1.trim();
         if (var1 != null && !"".equals(var1)) {
            if (var1.charAt(0) == '=') {
               var1 = var1.substring(1);
            }

            return var1 != null && !"".equals(var1) ? var1 : null;
         } else {
            return null;
         }
      }
   }

   zik b() {
      return this.j;
   }

   void a(zik var1) {
      this.j = var1;
   }

   public String getMinusValue() {
      return this.k == null ? null : this.k.h();
   }

   public void setMinusValue(String value) {
      String var2 = this.a(value);
      if (var2 != null && !"".equals(var2)) {
         this.k = zin.a(this.d.i(), this.d.j(), var2);
      } else {
         this.k = null;
      }
   }

   zik c() {
      return this.k;
   }

   void b(zik var1) {
      this.k = var1;
   }

   Series d() {
      return this.d;
   }

   ShapePropertyCollection e() {
      if (this.l == null) {
         this.l = new ShapePropertyCollection(this.d.s().a().a(), this, 7);
      }

      return this.l;
   }
}
